package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 景区——景区商户类型
 */
@Entity(name = "xw_sceinc_merchanttype")
public class XwSceincMerchanttype {

    /**
     * 景区商户类型id
     */
    @Column(name = "sceincType_Merid")
    private Integer sceinctypeMerid;

    /**
     * 景区类型加密id
     */
    @Column(name = "sceincType_encryptId")
    private String sceinctypeEncryptid;

    /**
     * 景区类型（内容）
     */
    @Column(name = "sceincType_desc")
    private String sceinctypeDesc;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "sceincType_updatetime")
    private Date sceinctypeUpdatetime;

    /**
     * 提交时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "sceincType_createtime")
    private Date sceinctypeCreatetime;

    public XwSceincMerchanttype(){

    }

    public XwSceincMerchanttype(String sceinctypeEncryptid, String sceinctypeDesc, Date sceinctypeUpdatetime, Date sceinctypeCreatetime) {
        this.sceinctypeEncryptid = sceinctypeEncryptid;
        this.sceinctypeDesc = sceinctypeDesc;
        this.sceinctypeUpdatetime = sceinctypeUpdatetime;
        this.sceinctypeCreatetime = sceinctypeCreatetime;
    }

    /**
     * 获取景区商户类型id
     *
     * @return sceincType_Merid - 景区商户类型id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getSceinctypeMerid() {
        return sceinctypeMerid;
    }

    /**
     * 设置景区商户类型id
     *
     * @param sceinctypeMerid 景区商户类型id
     */
    public void setSceinctypeMerid(Integer sceinctypeMerid) {
        this.sceinctypeMerid = sceinctypeMerid;
    }

    /**
     * 获取景区类型加密id
     *
     * @return sceincType_encryptId - 景区类型加密id
     */
    public String getSceinctypeEncryptid() {
        return sceinctypeEncryptid;
    }

    /**
     * 设置景区类型加密id
     *
     * @param sceinctypeEncryptid 景区类型加密id
     */
    public void setSceinctypeEncryptid(String sceinctypeEncryptid) {
        this.sceinctypeEncryptid = sceinctypeEncryptid;
    }

    /**
     * 获取景区类型（内容）
     *
     * @return sceincType_desc - 景区类型（内容）
     */
    public String getSceinctypeDesc() {
        return sceinctypeDesc;
    }

    /**
     * 设置景区类型（内容）
     *
     * @param sceinctypeDesc 景区类型（内容）
     */
    public void setSceinctypeDesc(String sceinctypeDesc) {
        this.sceinctypeDesc = sceinctypeDesc;
    }

    /**
     * 获取更新时间
     *
     * @return sceincType_updatetime - 更新时间
     */
    public Date getSceinctypeUpdatetime() {
        return sceinctypeUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param sceinctypeUpdatetime 更新时间
     */
    public void setSceinctypeUpdatetime(Date sceinctypeUpdatetime) {
        this.sceinctypeUpdatetime = sceinctypeUpdatetime;
    }

    /**
     * 获取提交时间
     *
     * @return sceincType_createtime - 提交时间
     */
    public Date getSceinctypeCreatetime() {
        return sceinctypeCreatetime;
    }

    /**
     * 设置提交时间
     *
     * @param sceinctypeCreatetime 提交时间
     */
    public void setSceinctypeCreatetime(Date sceinctypeCreatetime) {
        this.sceinctypeCreatetime = sceinctypeCreatetime;
    }

    @Override
    public String toString() {
        return "XwSceincMerchanttype{" +
                "sceinctypeMerid=" + sceinctypeMerid +
                ", sceinctypeEncryptid='" + sceinctypeEncryptid + '\'' +
                ", sceinctypeDesc='" + sceinctypeDesc + '\'' +
                ", sceinctypeUpdatetime=" + sceinctypeUpdatetime +
                ", sceinctypeCreatetime=" + sceinctypeCreatetime +
                '}';
    }
}